package com.github.thinwonton.springboot.showcase.poi.easypoi.entity;

import cn.afterturn.easypoi.excel.annotation.ExcelEntity;
import cn.afterturn.easypoi.handler.inter.IExcelDataModel;
import cn.afterturn.easypoi.handler.inter.IExcelModel;

/**
 * CompositeExcelVO
 *
 * @author hugo
 * @date 2018/9/19
 */
public class CompositeExcelVOV2 implements IExcelDataModel, IExcelModel {
    @ExcelEntity
    private CourseV2 course;

    @ExcelEntity
    private StudentV2 student;

    /**
     * 在excel中的行号
     */
    private int rowNum;

    /**
     * 错误信息
     */
    private String errorMsg;

    public CourseV2 getCourse() {
        return course;
    }

    public void setCourse(CourseV2 course) {
        this.course = course;
    }

    public StudentV2 getStudent() {
        return student;
    }

    public void setStudent(StudentV2 student) {
        this.student = student;
    }

    @Override
    public int getRowNum() {
        return rowNum;
    }

    @Override
    public void setRowNum(int rowNum) {
        this.rowNum = rowNum;
    }

    @Override
    public String getErrorMsg() {
        return errorMsg;
    }

    @Override
    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }
}
